﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Bbs>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" <%if (bllPowerGroupService.powercheck("communicate", "bbsmainedit", modelpowergroup))  { %> ondblClick="javascript:parent.onbotton('_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsMainEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'bbsmainedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="3%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="7%"><%=row.Id %></td>
			<td width="40%" id="left" class="padding-left3"><%=row.title %></td>
			<td width="15%"><%=row.addtime %></td>
			<td width="5%"><%=row.replynum %></td>
			<td width="5%" id="infotype">
				<table>
					<tr>
						<td><%if(row.istop==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="8%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{article_audit_ok}"></span><%}else{ %><span class="audit_no" title="_{article_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="17%" id="infotype">
                <%if (bllPowerGroupService.powercheck("communicate", "bbsmainedit", modelpowergroup))  { %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
                        <%if(row.bbstype.ispage==1 && row.upbid ==0 && row.replynum ==0) {%>
						<td><a class="setedit" id="rebbsedit<%=row.Id %>" onclick="javascript:parent.onbotton('_{forummain_text_replynum}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsMainAdd,row.Id) %>?type=add&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'rebbsedit<%=row.Id %>',self.frameElement.getAttribute('name'));" href="#body" title="_{forummain_text_replynum}" hidefocus="true">_{forummain_text_replynum}</a></td>
						<%} %>
						<td class="padding-left3"><a class="setedit" id="bbsmainedit<%=row.Id %>" onclick="javascript:parent.onbotton('_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.BbsController().BbsMainEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'bbsmainedit<%=row.Id %>',self.frameElement.getAttribute('name'));" href="#body" title="_{setedit_botton}" hidefocus="true">_{setedit_botton}</a></td>
                        <%if(row.replynum>0){ %>
						<td class="padding-left3"><a class="setedit2" id="rebbsmanlist<%=row.Id %>" onclick="javascript:parent.onbotton('_{forummain_text_set_title}','#{view}?loadfun=bbsmainlist&btid=<%=row.btid %>&upbid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'rebbsmanlist<%=row.Id %>',self.frameElement.getAttribute('name'));" href="#body" title="_{forummain_text_set_title}" hidefocus="true">_{forummain_text_set_title}</a></td>
						<%} %>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>